package com.itwn.mapper;

import com.itwn.entity.Score;
import com.itwn.vo.CommentVo;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScoreMapper {
    int deleteByPrimaryKey(Integer scoreId);

    int insert(Score record);

    Score selectByPrimaryKey(Integer scoreId);

    List<CommentVo> selectAll();
    List<CommentVo> selectAllByAnyCons(@Param("inputByUser")String inputByUser);
    List<CommentVo> selectAllByMovieName(@Param("inputByUser")String inputByUser);
    List<CommentVo> selectAllByComment(@Param("inputByUser")String inputByUser);
    List<CommentVo> selectAllByUser(@Param("inputByUser")String inputByUser);

    int updateByPrimaryKey(Score record);

    int deleteComment(Integer socreId);
}